﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DLL;
using Module;

namespace BLL
{
    public class BPolicyPaper
    {
        #region 字段

        private DPolicyPaper APP = new DPolicyPaper();//数据操作对象
        private static BPolicyPaper instance;

        #endregion

        #region 公共接口
        /// <summary>
        /// 取得
        /// </summary>
        /// <returns>BUserPassport对象</returns>
        public static BPolicyPaper getInstance()
        {
            if (instance == null)
            {
                instance = new BPolicyPaper();
            }
            return instance;
        }

         /// <summary>
        /// 添加
        /// </summary>
        /// <param name="userProfileInfo"></param>
        /// <returns></returns>
        public bool Insert(PolicyPaperInfo policyPaperInfo)
        {
            if (policyPaperInfo == null || policyPaperInfo.PolicyPaperId == 0)
                return false;

            return APP.Insert(policyPaperInfo);
        }
        /// <summary>
        /// 根据PagerId删除
        /// </summary>
        /// <param name="paperId"></param>
        /// <returns></returns>
        public int Delete(long paperId)
        {
            if (paperId == 0)
                return 0;
            return APP.Delete(paperId);
        }
        /// <summary>
        /// 根据主键删除
        /// </summary>
        /// <param name="policyPaperId"></param>
        /// <returns></returns>
        public int DeleteByID(long policyPaperId)
        {
            if (policyPaperId == 0)
                return 0;
            return APP.DeleteByID(policyPaperId);
        }
        #endregion
    }
}
